import tensorflow as tf

w = tf.Variable(1.0)
b = tf.Variable(2.0)
x = tf.Variable(3.0)
with tf.GradientTape() as t2:
    with tf.GradientTape() as t1:
        y = x * w + b
        dy_dw, dy_db = t1.gradient(y, [w, b])
    d2y_d2w = t2.gradient(dy_dw, w)


a = tf.linspace(-1., 1., 10)
b = tf.nn.relu(a)
print(b)

# print(dy_dw)
# print(dy_db)
# print(d2y_d2w)

